#include <stdio.h>
int main()
{
	int h = 3;
	int i,j;
	char c;
	scanf_s("%c", &c);
	for (i = 1; i <= h; ++i)
	{
		for (j = 1; j<=h-i; ++j)
		
			printf(" ");
		
		for (j = 1; j <= 2 * i - 1; ++j)
		{
			printf("%c", c);
		}
		printf("\n");

	}
	return 0;
}